﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PickGold.Exceptions
{
	/// <summary>
	/// 远程调用超时异常
	/// </summary>
	public class RpcTimeoutException : Exception
	{
		private IAsyncResult _AsyncResult;

		internal RpcTimeoutException(IAsyncResult result, string message) : base(message)
		{
			this._AsyncResult = result;
		}

		/// <summary>
		/// 发生异常的异步操作状态
		/// </summary>
		public IAsyncResult AsyncResult
		{
			get
			{
				return this._AsyncResult;
			}
		}
	}


}
